package com.lanhu.designpattern.strategy.count;

/**
 * author:zhangzg
 * date:2020/11/9 16:19
 */
public class Test {


    public static void main(String[] args) {
        Context context = new Context(new OperationAdd());
        int result = context.execute(1,4);

        System.out.println(result);

        Context context1 = new Context(new OperationMultiply());
        int result2 = context1.execute(3,5);

        System.out.println(result2);

    }
}
